package com.swp.oa.sys.service;

import com.swp.oa.common.dao.Pager;
import com.swp.oa.sys.domain.User;
import com.swp.oa.sys.dto.ActiveUserDto;
import com.swp.oa.sys.dto.UserDto;



public interface IUserService {

	public abstract void save(UserDto userDto);

	public abstract void saveUserRole(long userId, long roleId);

	public abstract void delete(String[] userIdArray);

	public abstract void update(UserDto user);

	public abstract UserDto getUserByUserId(long userId);

	public abstract UserDto getUserByName(String userName);
	
	public abstract ActiveUserDto getActiveUserByName(String userName);
	
	public abstract Pager<UserDto> getUserList(int pageIndex, int pageSize, String userName,
			  String createdateStart, String createdateEnd,
			  String updatedateStart, String updatedateEnd, String[] deptIds);

	public abstract boolean existUserName(String userName);

	public abstract String getUserNameByRole(String roleName);



}
